home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 33 / Amiga Format AFCD33 (Issue 117, Dec 1998).iso / -seriously_amiga- / programming / c / qtools0.2 / archives / qtools0.2-src.lha / configure < prev    next >
Text File  |  1998-09-09  |  87KB  |  2,883 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38. bindir='${exec_prefix}/bin'
  39. sbindir='${exec_prefix}/sbin'
  40. libexecdir='${exec_prefix}/libexec'
  41. datadir='${prefix}/share'
  42. sysconfdir='${prefix}/etc'
  43. sharedstatedir='${prefix}/com'
  44. localstatedir='${prefix}/var'
  45. libdir='${exec_prefix}/lib'
  46. includedir='${prefix}/include'
  47. oldincludedir='/usr/include'
  48. infodir='${prefix}/info'
  49. guidedir='${prefix}/guide'
  50. psdir='${prefix}/ps'
  51. dvidir='${prefix}/dvi'
  52. mandir='${prefix}/man'
  53.  
  54. # Initialize some other variables.
  55. subdirs=
  56. MFLAGS= MAKEFLAGS=
  57. # Maximum number of lines to put in a shell here document.
  58. ac_max_here_lines=12
  59.  
  60. ac_prev=
  61. for ac_option
  62. do
  63.  
  64.   # If the previous option needs an argument, assign it.
  65.   if test -n "$ac_prev"; then
  66.     eval "$ac_prev=\$ac_option"
  67.     ac_prev=
  68.     continue
  69.   fi
  70.  
  71.   case "$ac_option" in
  72.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  73.   *) ac_optarg= ;;
  74.   esac
  75.  
  76.   # Accept the important Cygnus configure options, so we can diagnose typos.
  77.  
  78.   case "$ac_option" in
  79.  
  80.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  81.     ac_prev=bindir ;;
  82.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  83.     bindir="$ac_optarg" ;;
  84.  
  85.   -build | --build | --buil | --bui | --bu)
  86.     ac_prev=build ;;
  87.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  88.     build="$ac_optarg" ;;
  89.  
  90.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  91.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  92.     ac_prev=cache_file ;;
  93.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  94.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  95.     cache_file="$ac_optarg" ;;
  96.  
  97.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  98.     ac_prev=datadir ;;
  99.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  100.   | --da=*)
  101.     datadir="$ac_optarg" ;;
  102.  
  103.   -disable-* | --disable-*)
  104.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  105.     # Reject names that are not valid shell variable names.
  106.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  107.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  108.     fi
  109.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  110.     eval "enable_${ac_feature}=no" ;;
  111.  
  112.   -enable-* | --enable-*)
  113.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  114.     # Reject names that are not valid shell variable names.
  115.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  116.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  117.     fi
  118.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  119.     case "$ac_option" in
  120.       *=*) ;;
  121.       *) ac_optarg=yes ;;
  122.     esac
  123.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  124.  
  125.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  126.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  127.   | --exec | --exe | --ex)
  128.     ac_prev=exec_prefix ;;
  129.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  130.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  131.   | --exec=* | --exe=* | --ex=*)
  132.     exec_prefix="$ac_optarg" ;;
  133.  
  134.   -gas | --gas | --ga | --g)
  135.     # Obsolete; use --with-gas.
  136.     with_gas=yes ;;
  137.  
  138.   -help | --help | --hel | --he)
  139.     # Omit some internal or obsolete options to make the list less imposing.
  140.     # This message is too long to be a string in the A/UX 3.1 sh.
  141.     cat << EOF
  142. Usage: configure [options] [host]
  143. Options: [defaults in brackets after descriptions]
  144. Configuration:
  145.   --cache-file=FILE       cache test results in FILE
  146.   --help                  print this message
  147.   --no-create             do not create output files
  148.   --quiet, --silent       do not print \`checking...' messages
  149.   --version               print the version of autoconf that created configure
  150. Directory and file names:
  151.   --prefix=PREFIX         install architecture-independent files in PREFIX
  152.                           [$ac_default_prefix]
  153.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  154.                           [same as prefix]
  155.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  156.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  157.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  158.   --datadir=DIR           read-only architecture-independent data in DIR
  159.                           [PREFIX/share]
  160.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  161.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  162.                           [PREFIX/com]
  163.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  164.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  165.   --includedir=DIR        C header files in DIR [PREFIX/include]
  166.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  167.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  168.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  169.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  170.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  171.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  172.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  173.   --program-prefix=PREFIX prepend PREFIX to installed program names
  174.   --program-suffix=SUFFIX append SUFFIX to installed program names
  175.   --program-transform-name=PROGRAM
  176.                           run sed PROGRAM on installed program names
  177. EOF
  178.     cat << EOF
  179. Host type:
  180.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  181.   --host=HOST             configure for HOST [guessed]
  182.   --target=TARGET         configure for TARGET [TARGET=HOST]
  183. Features and packages:
  184.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  185.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  186.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  187.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  188.   --x-includes=DIR        X include files are in DIR
  189.   --x-libraries=DIR       X library files are in DIR
  190. EOF
  191.     if test -n "$ac_help"; then
  192.       echo "--enable and --with options recognized:$ac_help"
  193.     fi
  194.     exit 0 ;;
  195.  
  196.   -host | --host | --hos | --ho)
  197.     ac_prev=host ;;
  198.   -host=* | --host=* | --hos=* | --ho=*)
  199.     host="$ac_optarg" ;;
  200.  
  201.   -includedir | --includedir | --includedi | --included | --include \
  202.   | --includ | --inclu | --incl | --inc)
  203.     ac_prev=includedir ;;
  204.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  205.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  206.     includedir="$ac_optarg" ;;
  207.  
  208.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  209.     ac_prev=infodir ;;
  210.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  211.     infodir="$ac_optarg" ;;
  212.  
  213.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  214.    ac_prev=guidedir ;;
  215.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  216.  
  217.  -psdir | --psdir | --psdi | --psd | --ps)
  218.    ac_prev=psdir ;;
  219.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  220.  
  221.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  222.    ac_prev=dvidir ;;
  223.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  224.  
  225.   -libdir | --libdir | --libdi | --libd)
  226.     ac_prev=libdir ;;
  227.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  228.     libdir="$ac_optarg" ;;
  229.  
  230.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  231.   | --libexe | --libex | --libe)
  232.     ac_prev=libexecdir ;;
  233.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  234.   | --libexe=* | --libex=* | --libe=*)
  235.     libexecdir="$ac_optarg" ;;
  236.  
  237.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  238.   | --localstate | --localstat | --localsta | --localst \
  239.   | --locals | --local | --loca | --loc | --lo)
  240.     ac_prev=localstatedir ;;
  241.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  242.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  243.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  244.     localstatedir="$ac_optarg" ;;
  245.  
  246.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  247.     ac_prev=mandir ;;
  248.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  249.     mandir="$ac_optarg" ;;
  250.  
  251.   -nfp | --nfp | --nf)
  252.     # Obsolete; use --without-fp.
  253.     with_fp=no ;;
  254.  
  255.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  256.   | --no-cr | --no-c)
  257.     no_create=yes ;;
  258.  
  259.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  260.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  261.     no_recursion=yes ;;
  262.  
  263.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  264.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  265.   | --oldin | --oldi | --old | --ol | --o)
  266.     ac_prev=oldincludedir ;;
  267.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  268.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  269.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  270.     oldincludedir="$ac_optarg" ;;
  271.  
  272.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  273.     ac_prev=prefix ;;
  274.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  275.     prefix="$ac_optarg" ;;
  276.  
  277.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  278.   | --program-pre | --program-pr | --program-p)
  279.     ac_prev=program_prefix ;;
  280.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  281.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  282.     program_prefix="$ac_optarg" ;;
  283.  
  284.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  285.   | --program-suf | --program-su | --program-s)
  286.     ac_prev=program_suffix ;;
  287.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  288.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  289.     program_suffix="$ac_optarg" ;;
  290.  
  291.   -program-transform-name | --program-transform-name \
  292.   | --program-transform-nam | --program-transform-na \
  293.   | --program-transform-n | --program-transform- \
  294.   | --program-transform | --program-transfor \
  295.   | --program-transfo | --program-transf \
  296.   | --program-trans | --program-tran \
  297.   | --progr-tra | --program-tr | --program-t)
  298.     ac_prev=program_transform_name ;;
  299.   -program-transform-name=* | --program-transform-name=* \
  300.   | --program-transform-nam=* | --program-transform-na=* \
  301.   | --program-transform-n=* | --program-transform-=* \
  302.   | --program-transform=* | --program-transfor=* \
  303.   | --program-transfo=* | --program-transf=* \
  304.   | --program-trans=* | --program-tran=* \
  305.   | --progr-tra=* | --program-tr=* | --program-t=*)
  306.     program_transform_name="$ac_optarg" ;;
  307.  
  308.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  309.   | -silent | --silent | --silen | --sile | --sil)
  310.     silent=yes ;;
  311.  
  312.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  313.     ac_prev=sbindir ;;
  314.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  315.   | --sbi=* | --sb=*)
  316.     sbindir="$ac_optarg" ;;
  317.  
  318.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  319.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  320.   | --sharedst | --shareds | --shared | --share | --shar \
  321.   | --sha | --sh)
  322.     ac_prev=sharedstatedir ;;
  323.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  324.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  325.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  326.   | --sha=* | --sh=*)
  327.     sharedstatedir="$ac_optarg" ;;
  328.  
  329.   -site | --site | --sit)
  330.     ac_prev=site ;;
  331.   -site=* | --site=* | --sit=*)
  332.     site="$ac_optarg" ;;
  333.  
  334.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  335.     ac_prev=srcdir ;;
  336.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  337.     srcdir="$ac_optarg" ;;
  338.  
  339.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  340.   | --syscon | --sysco | --sysc | --sys | --sy)
  341.     ac_prev=sysconfdir ;;
  342.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  343.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  344.     sysconfdir="$ac_optarg" ;;
  345.  
  346.   -target | --target | --targe | --targ | --tar | --ta | --t)
  347.     ac_prev=target ;;
  348.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  349.     target="$ac_optarg" ;;
  350.  
  351.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  352.     verbose=yes ;;
  353.  
  354.   -version | --version | --versio | --versi | --vers)
  355.     echo "configure generated by autoconf version 2.12"
  356.     exit 0 ;;
  357.  
  358.   -with-* | --with-*)
  359.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  360.     # Reject names that are not valid shell variable names.
  361.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  362.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  363.     fi
  364.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  365.     case "$ac_option" in
  366.       *=*) ;;
  367.       *) ac_optarg=yes ;;
  368.     esac
  369.     eval "with_${ac_package}='$ac_optarg'" ;;
  370.  
  371.   -without-* | --without-*)
  372.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  373.     # Reject names that are not valid shell variable names.
  374.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  375.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  376.     fi
  377.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  378.     eval "with_${ac_package}=no" ;;
  379.  
  380.   --x)
  381.     # Obsolete; use --with-x.
  382.     with_x=yes ;;
  383.  
  384.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  385.   | --x-incl | --x-inc | --x-in | --x-i)
  386.     ac_prev=x_includes ;;
  387.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  388.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  389.     x_includes="$ac_optarg" ;;
  390.  
  391.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  392.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  393.     ac_prev=x_libraries ;;
  394.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  395.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  396.     x_libraries="$ac_optarg" ;;
  397.  
  398.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  399.     ;;
  400.  
  401.   *)
  402.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  403.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  404.     fi
  405.     if test "x$nonopt" != xNONE; then
  406.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  407.     fi
  408.     nonopt="$ac_option"
  409.     ;;
  410.  
  411.   esac
  412. done
  413.  
  414. if test -n "$ac_prev"; then
  415.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  416. fi
  417.  
  418. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  419.  
  420. # File descriptor usage:
  421. # 0 standard input
  422. # 1 file creation
  423. # 2 errors and warnings
  424. # 3 some systems may open it to /dev/tty
  425. # 4 used on the Kubota Titan
  426. # 6 checking for... messages and results
  427. # 5 compiler messages saved in config.log
  428. if test "$silent" = yes; then
  429.   exec 6>/dev/null
  430. else
  431.   exec 6>&1
  432. fi
  433. exec 5>./config.log
  434.  
  435. echo "\
  436. This file contains any messages produced by compilers while
  437. running configure, to aid debugging if configure makes a mistake.
  438. " 1>&5
  439.  
  440. # Strip out --no-create and --no-recursion so they do not pile up.
  441. # Also quote any args containing shell metacharacters.
  442. ac_configure_args=
  443. for ac_arg
  444. do
  445.   case "$ac_arg" in
  446.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  447.   | --no-cr | --no-c) ;;
  448.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  449.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  450.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  451.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  452.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  453.   esac
  454. done
  455.  
  456. # NLS nuisances.
  457. # Only set these to C if already set.  These must not be set unconditionally
  458. # because not all systems understand e.g. LANG=C (notably SCO).
  459. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  460. # Non-C LC_CTYPE values break the ctype check.
  461. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  462. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  463. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  464. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  465.  
  466. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  467. rm -rf conftest* confdefs.h
  468. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  469. echo > confdefs.h
  470.  
  471. # A filename unique to this package, relative to the directory that
  472. # configure is in, which we can look for to find out if srcdir is correct.
  473. ac_unique_file=./src/libqsys/generic.c
  474.  
  475. # Find the source files, if location was not specified.
  476. if test -z "$srcdir"; then
  477.   ac_srcdir_defaulted=yes
  478.   # Try the directory containing this script, then its parent.
  479.   ac_prog=$0
  480.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  481.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  482.   srcdir=$ac_confdir
  483.   if test ! -r $srcdir/$ac_unique_file; then
  484.     srcdir=..
  485.   fi
  486. else
  487.   ac_srcdir_defaulted=no
  488. fi
  489. if test ! -r $srcdir/$ac_unique_file; then
  490.   if test "$ac_srcdir_defaulted" = yes; then
  491.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  492.   else
  493.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  494.   fi
  495. fi
  496. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  497.  
  498. # Prefer explicitly selected file to automatically selected ones.
  499. if test -z "$CONFIG_SITE"; then
  500.   if test "x$prefix" != xNONE; then
  501.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  502.   else
  503.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  504.   fi
  505. fi
  506. for ac_site_file in $CONFIG_SITE; do
  507.   if test -r "$ac_site_file"; then
  508.     echo "loading site script $ac_site_file"
  509.     . "$ac_site_file"
  510.   fi
  511. done
  512.  
  513. if test -r "$cache_file"; then
  514.   echo "loading cache $cache_file"
  515.   . $cache_file
  516. else
  517.   echo "creating cache $cache_file"
  518.   > $cache_file
  519. fi
  520.  
  521. ac_ext=c
  522. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  523. ac_cpp='$CPP $CPPFLAGS'
  524. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  525. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  526. cross_compiling=$ac_cv_prog_cc_cross
  527.  
  528. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  529.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  530.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  531.     ac_n= ac_c='
  532. ' ac_t='    '
  533.   else
  534.     ac_n=-n ac_c= ac_t=
  535.   fi
  536. else
  537.   ac_n= ac_c='\c' ac_t=
  538. fi
  539.  
  540.  
  541.  
  542. ac_aux_dir=
  543. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  544.   if test -f $ac_dir/install-sh; then
  545.     ac_aux_dir=$ac_dir
  546.     ac_install_sh="$ac_aux_dir/install-sh -c"
  547.     break
  548.   elif test -f $ac_dir/install.sh; then
  549.     ac_aux_dir=$ac_dir
  550.     ac_install_sh="$ac_aux_dir/install.sh -c"
  551.     break
  552.   fi
  553. done
  554. if test -z "$ac_aux_dir"; then
  555.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  556. fi
  557. ac_config_guess=$ac_aux_dir/config.guess
  558. ac_config_sub=$ac_aux_dir/config.sub
  559. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  560.  
  561.  
  562. # Do some error checking and defaulting for the host and target type.
  563. # The inputs are:
  564. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  565. #
  566. # The rules are:
  567. # 1. You are not allowed to specify --host, --target, and nonopt at the
  568. #    same time.
  569. # 2. Host defaults to nonopt.
  570. # 3. If nonopt is not specified, then host defaults to the current host,
  571. #    as determined by config.guess.
  572. # 4. Target and build default to nonopt.
  573. # 5. If nonopt is not specified, then target and build default to host.
  574.  
  575. # The aliases save the names the user supplied, while $host etc.
  576. # will get canonicalized.
  577. case $host---$target---$nonopt in
  578. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  579. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  580. esac
  581.  
  582.  
  583. # Make sure we can run config.sub.
  584. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  585. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  586. fi
  587.  
  588. echo $ac_n "checking host system type""... $ac_c" 1>&6
  589. echo "configure:590: checking host system type" >&5
  590.  
  591. host_alias=$host
  592. case "$host_alias" in
  593. NONE)
  594.   case $nonopt in
  595.   NONE)
  596.     if host_alias=`$ac_config_guess`; then :
  597.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  598.     fi ;;
  599.   *) host_alias=$nonopt ;;
  600.   esac ;;
  601. esac
  602.  
  603. host=`$ac_config_sub $host_alias`
  604. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  605. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  606. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  607. echo "$ac_t""$host" 1>&6
  608.  
  609. echo $ac_n "checking target system type""... $ac_c" 1>&6
  610. echo "configure:611: checking target system type" >&5
  611.  
  612. target_alias=$target
  613. case "$target_alias" in
  614. NONE)
  615.   case $nonopt in
  616.   NONE) target_alias=$host_alias ;;
  617.   *) target_alias=$nonopt ;;
  618.   esac ;;
  619. esac
  620.  
  621. target=`$ac_config_sub $target_alias`
  622. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  623. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  624. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  625. echo "$ac_t""$target" 1>&6
  626.  
  627. echo $ac_n "checking build system type""... $ac_c" 1>&6
  628. echo "configure:629: checking build system type" >&5
  629.  
  630. build_alias=$build
  631. case "$build_alias" in
  632. NONE)
  633.   case $nonopt in
  634.   NONE) build_alias=$host_alias ;;
  635.   *) build_alias=$nonopt ;;
  636.   esac ;;
  637. esac
  638.  
  639. build=`$ac_config_sub $build_alias`
  640. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  641. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  642. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  643. echo "$ac_t""$build" 1>&6
  644.  
  645. test "$host_alias" != "$target_alias" &&
  646.   test "$program_prefix$program_suffix$program_transform_name" = \
  647.     NONENONEs,x,x, &&
  648.   program_prefix=${target_alias}-
  649.  
  650. # Extract the first word of "gcc", so it can be a program name with args.
  651. set dummy gcc; ac_word=$2
  652. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  653. echo "configure:654: checking for $ac_word" >&5
  654. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  655.   echo $ac_n "(cached) $ac_c" 1>&6
  656. else
  657.   if test -n "$CC"; then
  658.   ac_cv_prog_CC="$CC" # Let the user override the test.
  659. else
  660.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  661.   for ac_dir in $PATH; do
  662.     test -z "$ac_dir" && ac_dir=.
  663.     if test -f $ac_dir/$ac_word; then
  664.       ac_cv_prog_CC="gcc"
  665.       break
  666.     fi
  667.   done
  668.   IFS="$ac_save_ifs"
  669. fi
  670. fi
  671. CC="$ac_cv_prog_CC"
  672. if test -n "$CC"; then
  673.   echo "$ac_t""$CC" 1>&6
  674. else
  675.   echo "$ac_t""no" 1>&6
  676. fi
  677.  
  678. if test -z "$CC"; then
  679.   # Extract the first word of "bcc", so it can be a program name with args.
  680. set dummy bcc; ac_word=$2
  681. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  682. echo "configure:683: checking for $ac_word" >&5
  683. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  684.   echo $ac_n "(cached) $ac_c" 1>&6
  685. else
  686.   if test -n "$CC"; then
  687.   ac_cv_prog_CC="$CC" # Let the user override the test.
  688. else
  689.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  690.   for ac_dir in $PATH; do
  691.     test -z "$ac_dir" && ac_dir=.
  692.     if test -f $ac_dir/$ac_word; then
  693.       ac_cv_prog_CC="bcc"
  694.       break
  695.     fi
  696.   done
  697.   IFS="$ac_save_ifs"
  698. fi
  699. fi
  700. CC="$ac_cv_prog_CC"
  701. if test -n "$CC"; then
  702.   echo "$ac_t""$CC" 1>&6
  703. else
  704.   echo "$ac_t""no" 1>&6
  705. fi
  706.  
  707. fi
  708. if test -z "$CC"; then
  709.   # Extract the first word of "mwcc", so it can be a program name with args.
  710. set dummy mwcc; ac_word=$2
  711. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  712. echo "configure:713: checking for $ac_word" >&5
  713. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  714.   echo $ac_n "(cached) $ac_c" 1>&6
  715. else
  716.   if test -n "$CC"; then
  717.   ac_cv_prog_CC="$CC" # Let the user override the test.
  718. else
  719.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  720.   for ac_dir in $PATH; do
  721.     test -z "$ac_dir" && ac_dir=.
  722.     if test -f $ac_dir/$ac_word; then
  723.       ac_cv_prog_CC="mwcc"
  724.       break
  725.     fi
  726.   done
  727.   IFS="$ac_save_ifs"
  728. fi
  729. fi
  730. CC="$ac_cv_prog_CC"
  731. if test -n "$CC"; then
  732.   echo "$ac_t""$CC" 1>&6
  733. else
  734.   echo "$ac_t""no" 1>&6
  735. fi
  736.  
  737. fi
  738. if test -z "$CC"; then
  739.   # Extract the first word of "cc", so it can be a program name with args.
  740. set dummy cc; ac_word=$2
  741. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  742. echo "configure:743: checking for $ac_word" >&5
  743. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  744.   echo $ac_n "(cached) $ac_c" 1>&6
  745. else
  746.   if test -n "$CC"; then
  747.   ac_cv_prog_CC="$CC" # Let the user override the test.
  748. else
  749.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  750.   ac_prog_rejected=no
  751.   for ac_dir in $PATH; do
  752.     test -z "$ac_dir" && ac_dir=.
  753.     if test -f $ac_dir/$ac_word; then
  754.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  755.         ac_prog_rejected=yes
  756.     continue
  757.       fi
  758.       ac_cv_prog_CC="cc"
  759.       break
  760.     fi
  761.   done
  762.   IFS="$ac_save_ifs"
  763. if test $ac_prog_rejected = yes; then
  764.   # We found a bogon in the path, so make sure we never use it.
  765.   set dummy $ac_cv_prog_CC
  766.   shift
  767.   if test $# -gt 0; then
  768.     # We chose a different compiler from the bogus one.
  769.     # However, it has the same basename, so the bogon will be chosen
  770.     # first if we set CC to just the basename; use the full file name.
  771.     shift
  772.     set dummy "$ac_dir/$ac_word" "$@"
  773.     shift
  774.     ac_cv_prog_CC="$@"
  775.   fi
  776. fi
  777. fi
  778. fi
  779. CC="$ac_cv_prog_CC"
  780. if test -n "$CC"; then
  781.   echo "$ac_t""$CC" 1>&6
  782. else
  783.   echo "$ac_t""no" 1>&6
  784. fi
  785.  
  786. fi
  787. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  788.  
  789. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  790. echo "configure:791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  791.  
  792. ac_ext=c
  793. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  794. ac_cpp='$CPP $CPPFLAGS'
  795. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  796. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  797. cross_compiling=$ac_cv_prog_cc_cross
  798.  
  799. cat > conftest.$ac_ext <<EOF
  800. #line 801 "configure"
  801. #include "confdefs.h"
  802. main(){return(0);}
  803. EOF
  804. if { (eval echo configure:805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  805.   ac_cv_prog_cc_works=yes
  806.   # If we can't run a trivial program, we are probably using a cross compiler.
  807.   if (./conftest; exit) 2>/dev/null; then
  808.     ac_cv_prog_cc_cross=no
  809.   else
  810.     ac_cv_prog_cc_cross=yes
  811.   fi
  812. else
  813.   echo "configure: failed program was:" >&5
  814.   cat conftest.$ac_ext >&5
  815.   ac_cv_prog_cc_works=no
  816. fi
  817. rm -fr conftest*
  818.  
  819. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  820. if test $ac_cv_prog_cc_works = no; then
  821.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  822. fi
  823. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  824. echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  825. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  826. cross_compiling=$ac_cv_prog_cc_cross
  827.  
  828. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  829. echo "configure:830: checking whether we are using GNU C" >&5
  830. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  831.   echo $ac_n "(cached) $ac_c" 1>&6
  832. else
  833.   cat > conftest.c <<EOF
  834. #ifdef __GNUC__
  835.   yes;
  836. #endif
  837. EOF
  838. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  839.   ac_cv_prog_gcc=yes
  840. else
  841.   ac_cv_prog_gcc=no
  842. fi
  843. fi
  844.  
  845. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  846.  
  847. if test $ac_cv_prog_gcc = yes; then
  848.   GCC=yes
  849.   ac_test_CFLAGS="${CFLAGS+set}"
  850.   ac_save_CFLAGS="$CFLAGS"
  851.   CFLAGS=
  852.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  853. echo "configure:854: checking whether ${CC-cc} accepts -g" >&5
  854. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  855.   echo $ac_n "(cached) $ac_c" 1>&6
  856. else
  857.   echo 'void f(){}' > conftest.c
  858. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  859.   ac_cv_prog_cc_g=yes
  860. else
  861.   ac_cv_prog_cc_g=no
  862. fi
  863. rm -f conftest*
  864.  
  865. fi
  866.  
  867. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  868.   if test "$ac_test_CFLAGS" = set; then
  869.     CFLAGS="$ac_save_CFLAGS"
  870.   elif test $ac_cv_prog_cc_g = yes; then
  871.     CFLAGS="-g -O2"
  872.   else
  873.     CFLAGS="-O2"
  874.   fi
  875. else
  876.   GCC=
  877.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  878. fi
  879. if test "$CC" = "mwcc"; then
  880.   CC="mwcc -I- -I. -I/gg/include -L/gg/lib -opt global -nodup"
  881.   ARFLAGS="-xml -o"
  882.   AR="mwld"
  883.   RANLIB="true"
  884. elif test "$CC" = "bcc"; then
  885.   ARFLAGS="-xml -o"
  886.   AR="mwld"
  887.   RANLIB="true"
  888. else
  889.   ARFLAGS="cr"
  890. fi
  891.  
  892. # Find a good install program.  We prefer a C program (faster),
  893. # so one script is as good as another.  But avoid the broken or
  894. # incompatible versions:
  895. # SysV /etc/install, /usr/sbin/install
  896. # SunOS /usr/etc/install
  897. # IRIX /sbin/install
  898. # AIX /bin/install
  899. # AmigaOS /c/install
  900. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  901. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  902. # ./install, which can be erroneously created by make from ./install.sh.
  903. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  904. echo "configure:905: checking for a BSD compatible install" >&5
  905. if test -z "$INSTALL"; then
  906. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  907.   echo $ac_n "(cached) $ac_c" 1>&6
  908. else
  909.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  910.   for ac_dir in $PATH; do
  911.     # Account for people who put trailing slashes in PATH elements.
  912.     case "$ac_dir/" in
  913.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  914.     *)
  915.       # OSF1 and SCO ODT 3.0 have their own names for install.
  916.       for ac_prog in ginstall installbsd scoinst install; do
  917.         if test -f $ac_dir/$ac_prog; then
  918.       if test $ac_prog = install &&
  919.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  920.         # AIX install.  It has an incompatible calling convention.
  921.         # OSF/1 installbsd also uses dspmsg, but is usable.
  922.         :
  923.       else
  924.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  925.         break 2
  926.       fi
  927.     fi
  928.       done
  929.       ;;
  930.     esac
  931.   done
  932.   IFS="$ac_save_IFS"
  933.  
  934. fi
  935.   if test "${ac_cv_path_install+set}" = set; then
  936.     INSTALL="$ac_cv_path_install"
  937.   else
  938.     # As a last resort, use the slow shell script.  We don't cache a
  939.     # path for INSTALL within a source directory, because that will
  940.     # break other packages using the cache if that directory is
  941.     # removed, or if the path is relative.
  942.     INSTALL="$ac_install_sh"
  943.   fi
  944. fi
  945. echo "$ac_t""$INSTALL" 1>&6
  946.  
  947. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  948. # It thinks the first close brace ends the variable substitution.
  949. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  950.  
  951. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  952.  
  953. # Extract the first word of "ranlib", so it can be a program name with args.
  954. set dummy ranlib; ac_word=$2
  955. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  956. echo "configure:957: checking for $ac_word" >&5
  957. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  958.   echo $ac_n "(cached) $ac_c" 1>&6
  959. else
  960.   if test -n "$RANLIB"; then
  961.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  962. else
  963.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  964.   for ac_dir in $PATH; do
  965.     test -z "$ac_dir" && ac_dir=.
  966.     if test -f $ac_dir/$ac_word; then
  967.       ac_cv_prog_RANLIB="ranlib"
  968.       break
  969.     fi
  970.   done
  971.   IFS="$ac_save_ifs"
  972.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  973. fi
  974. fi
  975. RANLIB="$ac_cv_prog_RANLIB"
  976. if test -n "$RANLIB"; then
  977.   echo "$ac_t""$RANLIB" 1>&6
  978. else
  979.   echo "$ac_t""no" 1>&6
  980. fi
  981.  
  982. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  983. echo "configure:984: checking whether ${MAKE-make} sets \${MAKE}" >&5
  984. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  985. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  986.   echo $ac_n "(cached) $ac_c" 1>&6
  987. else
  988.   cat > conftestmake <<\EOF
  989. all:
  990.     @echo 'ac_maketemp="${MAKE}"'
  991. EOF
  992. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  993. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  994. if test -n "$ac_maketemp"; then
  995.   eval ac_cv_prog_make_${ac_make}_set=yes
  996. else
  997.   eval ac_cv_prog_make_${ac_make}_set=no
  998. fi
  999. rm -f conftestmake
  1000. fi
  1001. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1002.   echo "$ac_t""yes" 1>&6
  1003.   SET_MAKE=
  1004. else
  1005.   echo "$ac_t""no" 1>&6
  1006.   SET_MAKE="MAKE=${MAKE-make}"
  1007. fi
  1008.  
  1009. # Extract the first word of "ld", so it can be a program name with args.
  1010. set dummy ld; ac_word=$2
  1011. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1012. echo "configure:1013: checking for $ac_word" >&5
  1013. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1014.   echo $ac_n "(cached) $ac_c" 1>&6
  1015. else
  1016.   case "$LD" in
  1017.   /*)
  1018.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1019.   ;;
  1020.   *)
  1021.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1022.   for ac_dir in $PATH; do
  1023.     test -z "$ac_dir" && ac_dir=.
  1024.     if test -f $ac_dir/$ac_word; then
  1025.       ac_cv_path_LD="$ac_dir/$ac_word"
  1026.       break
  1027.     fi
  1028.   done
  1029.   IFS="$ac_save_ifs"
  1030.   test -z "$ac_cv_path_LD" && ac_cv_path_LD="@CC@"
  1031.   ;;
  1032. esac
  1033. fi
  1034. LD="$ac_cv_path_LD"
  1035. if test -n "$LD"; then
  1036.   echo "$ac_t""$LD" 1>&6
  1037. else
  1038.   echo "$ac_t""no" 1>&6
  1039. fi
  1040.  
  1041. # Extract the first word of "as", so it can be a program name with args.
  1042. set dummy as; ac_word=$2
  1043. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1044. echo "configure:1045: checking for $ac_word" >&5
  1045. if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
  1046.   echo $ac_n "(cached) $ac_c" 1>&6
  1047. else
  1048.   case "$AS" in
  1049.   /*)
  1050.   ac_cv_path_AS="$AS" # Let the user override the test with a path.
  1051.   ;;
  1052.   *)
  1053.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1054.   for ac_dir in $PATH; do
  1055.     test -z "$ac_dir" && ac_dir=.
  1056.     if test -f $ac_dir/$ac_word; then
  1057.       ac_cv_path_AS="$ac_dir/$ac_word"
  1058.       break
  1059.     fi
  1060.   done
  1061.   IFS="$ac_save_ifs"
  1062.   test -z "$ac_cv_path_AS" && ac_cv_path_AS="@CC@"
  1063.   ;;
  1064. esac
  1065. fi
  1066. AS="$ac_cv_path_AS"
  1067. if test -n "$AS"; then
  1068.   echo "$ac_t""$AS" 1>&6
  1069. else
  1070.   echo "$ac_t""no" 1>&6
  1071. fi
  1072.  
  1073. # Extract the first word of "ar", so it can be a program name with args.
  1074. set dummy ar; ac_word=$2
  1075. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1076. echo "configure:1077: checking for $ac_word" >&5
  1077. if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
  1078.   echo $ac_n "(cached) $ac_c" 1>&6
  1079. else
  1080.   case "$AR" in
  1081.   /*)
  1082.   ac_cv_path_AR="$AR" # Let the user override the test with a path.
  1083.   ;;
  1084.   *)
  1085.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1086.   for ac_dir in $PATH; do
  1087.     test -z "$ac_dir" && ac_dir=.
  1088.     if test -f $ac_dir/$ac_word; then
  1089.       ac_cv_path_AR="$ac_dir/$ac_word"
  1090.       break
  1091.     fi
  1092.   done
  1093.   IFS="$ac_save_ifs"
  1094.   test -z "$ac_cv_path_AR" && ac_cv_path_AR="echo"
  1095.   ;;
  1096. esac
  1097. fi
  1098. AR="$ac_cv_path_AR"
  1099. if test -n "$AR"; then
  1100.   echo "$ac_t""$AR" 1>&6
  1101. else
  1102.   echo "$ac_t""no" 1>&6
  1103. fi
  1104.  
  1105. # Extract the first word of "tar", so it can be a program name with args.
  1106. set dummy tar; ac_word=$2
  1107. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1108. echo "configure:1109: checking for $ac_word" >&5
  1109. if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
  1110.   echo $ac_n "(cached) $ac_c" 1>&6
  1111. else
  1112.   case "$TAR" in
  1113.   /*)
  1114.   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
  1115.   ;;
  1116.   *)
  1117.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1118.   for ac_dir in $PATH; do
  1119.     test -z "$ac_dir" && ac_dir=.
  1120.     if test -f $ac_dir/$ac_word; then
  1121.       ac_cv_path_TAR="$ac_dir/$ac_word"
  1122.       break
  1123.     fi
  1124.   done
  1125.   IFS="$ac_save_ifs"
  1126.   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="echo"
  1127.   ;;
  1128. esac
  1129. fi
  1130. TAR="$ac_cv_path_TAR"
  1131. if test -n "$TAR"; then
  1132.   echo "$ac_t""$TAR" 1>&6
  1133. else
  1134.   echo "$ac_t""no" 1>&6
  1135. fi
  1136.  
  1137. # Extract the first word of "gzip", so it can be a program name with args.
  1138. set dummy gzip; ac_word=$2
  1139. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1140. echo "configure:1141: checking for $ac_word" >&5
  1141. if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then
  1142.   echo $ac_n "(cached) $ac_c" 1>&6
  1143. else
  1144.   case "$GZIP" in
  1145.   /*)
  1146.   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
  1147.   ;;
  1148.   *)
  1149.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1150.   for ac_dir in $PATH; do
  1151.     test -z "$ac_dir" && ac_dir=.
  1152.     if test -f $ac_dir/$ac_word; then
  1153.       ac_cv_path_GZIP="$ac_dir/$ac_word"
  1154.       break
  1155.     fi
  1156.   done
  1157.   IFS="$ac_save_ifs"
  1158.   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo"
  1159.   ;;
  1160. esac
  1161. fi
  1162. GZIP="$ac_cv_path_GZIP"
  1163. if test -n "$GZIP"; then
  1164.   echo "$ac_t""$GZIP" 1>&6
  1165. else
  1166.   echo "$ac_t""no" 1>&6
  1167. fi
  1168.  
  1169. # Extract the first word of "genproto", so it can be a program name with args.
  1170. set dummy genproto; ac_word=$2
  1171. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1172. echo "configure:1173: checking for $ac_word" >&5
  1173. if eval "test \"`echo '$''{'ac_cv_path_GPROTO'+set}'`\" = set"; then
  1174.   echo $ac_n "(cached) $ac_c" 1>&6
  1175. else
  1176.   case "$GPROTO" in
  1177.   /*)
  1178.   ac_cv_path_GPROTO="$GPROTO" # Let the user override the test with a path.
  1179.   ;;
  1180.   *)
  1181.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1182.   for ac_dir in $PATH; do
  1183.     test -z "$ac_dir" && ac_dir=.
  1184.     if test -f $ac_dir/$ac_word; then
  1185.       ac_cv_path_GPROTO="$ac_dir/$ac_word"
  1186.       break
  1187.     fi
  1188.   done
  1189.   IFS="$ac_save_ifs"
  1190.   test -z "$ac_cv_path_GPROTO" && ac_cv_path_GPROTO="echo"
  1191.   ;;
  1192. esac
  1193. fi
  1194. GPROTO="$ac_cv_path_GPROTO"
  1195. if test -n "$GPROTO"; then
  1196.   echo "$ac_t""$GPROTO" 1>&6
  1197. else
  1198.   echo "$ac_t""no" 1>&6
  1199. fi
  1200.  
  1201. # Extract the first word of "makedepend", so it can be a program name with args.
  1202. set dummy makedepend; ac_word=$2
  1203. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1204. echo "configure:1205: checking for $ac_word" >&5
  1205. if eval "test \"`echo '$''{'ac_cv_path_MKD'+set}'`\" = set"; then
  1206.   echo $ac_n "(cached) $ac_c" 1>&6
  1207. else
  1208.   case "$MKD" in
  1209.   /*)
  1210.   ac_cv_path_MKD="$MKD" # Let the user override the test with a path.
  1211.   ;;
  1212.   *)
  1213.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1214.   for ac_dir in $PATH; do
  1215.     test -z "$ac_dir" && ac_dir=.
  1216.     if test -f $ac_dir/$ac_word; then
  1217.       ac_cv_path_MKD="$ac_dir/$ac_word"
  1218.       break
  1219.     fi
  1220.   done
  1221.   IFS="$ac_save_ifs"
  1222.   test -z "$ac_cv_path_MKD" && ac_cv_path_MKD="echo"
  1223.   ;;
  1224. esac
  1225. fi
  1226. MKD="$ac_cv_path_MKD"
  1227. if test -n "$MKD"; then
  1228.   echo "$ac_t""$MKD" 1>&6
  1229. else
  1230.   echo "$ac_t""no" 1>&6
  1231. fi
  1232.  
  1233.  
  1234. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1235. echo "configure:1236: checking how to run the C preprocessor" >&5
  1236. # On Suns, sometimes $CPP names a directory.
  1237. if test -n "$CPP" && test -d "$CPP"; then
  1238.   CPP=
  1239. fi
  1240. if test -z "$CPP"; then
  1241. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1242.   echo $ac_n "(cached) $ac_c" 1>&6
  1243. else
  1244.     # This must be in double quotes, not single quotes, because CPP may get
  1245.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1246.   CPP="${CC-cc} -E"
  1247.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1248.   # not just through cpp.
  1249.   cat > conftest.$ac_ext <<EOF
  1250. #line 1251 "configure"
  1251. #include "confdefs.h"
  1252. #include <assert.h>
  1253. Syntax Error
  1254. EOF
  1255. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1256. { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1257. ac_err=`grep -v '^ *+' conftest.out`
  1258. if test -z "$ac_err"; then
  1259.   :
  1260. else
  1261.   echo "$ac_err" >&5
  1262.   echo "configure: failed program was:" >&5
  1263.   cat conftest.$ac_ext >&5
  1264.   rm -rf conftest*
  1265.   CPP="${CC-cc} -E -traditional-cpp"
  1266.   cat > conftest.$ac_ext <<EOF
  1267. #line 1268 "configure"
  1268. #include "confdefs.h"
  1269. #include <assert.h>
  1270. Syntax Error
  1271. EOF
  1272. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1273. { (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1274. ac_err=`grep -v '^ *+' conftest.out`
  1275. if test -z "$ac_err"; then
  1276.   :
  1277. else
  1278.   echo "$ac_err" >&5
  1279.   echo "configure: failed program was:" >&5
  1280.   cat conftest.$ac_ext >&5
  1281.   rm -rf conftest*
  1282.   CPP=/lib/cpp
  1283. fi
  1284. rm -f conftest*
  1285. fi
  1286. rm -f conftest*
  1287.   ac_cv_prog_CPP="$CPP"
  1288. fi
  1289.   CPP="$ac_cv_prog_CPP"
  1290. else
  1291.   ac_cv_prog_CPP="$CPP"
  1292. fi
  1293. echo "$ac_t""$CPP" 1>&6
  1294.  
  1295. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1296. echo "configure:1297: checking for ANSI C header files" >&5
  1297. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1298.   echo $ac_n "(cached) $ac_c" 1>&6
  1299. else
  1300.   cat > conftest.$ac_ext <<EOF
  1301. #line 1302 "configure"
  1302. #include "confdefs.h"
  1303. #include <stdlib.h>
  1304. #include <stdarg.h>
  1305. #include <string.h>
  1306. #include <float.h>
  1307. EOF
  1308. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1309. { (eval echo configure:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1310. ac_err=`grep -v '^ *+' conftest.out`
  1311. if test -z "$ac_err"; then
  1312.   rm -rf conftest*
  1313.   ac_cv_header_stdc=yes
  1314. else
  1315.   echo "$ac_err" >&5
  1316.   echo "configure: failed program was:" >&5
  1317.   cat conftest.$ac_ext >&5
  1318.   rm -rf conftest*
  1319.   ac_cv_header_stdc=no
  1320. fi
  1321. rm -f conftest*
  1322.  
  1323. if test $ac_cv_header_stdc = yes; then
  1324.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1325. cat > conftest.$ac_ext <<EOF
  1326. #line 1327 "configure"
  1327. #include "confdefs.h"
  1328. #include <string.h>
  1329. EOF
  1330. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1331.   egrep "memchr" >/dev/null 2>&1; then
  1332.   :
  1333. else
  1334.   rm -rf conftest*
  1335.   ac_cv_header_stdc=no
  1336. fi
  1337. rm -f conftest*
  1338.  
  1339. fi
  1340.  
  1341. if test $ac_cv_header_stdc = yes; then
  1342.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1343. cat > conftest.$ac_ext <<EOF
  1344. #line 1345 "configure"
  1345. #include "confdefs.h"
  1346. #include <stdlib.h>
  1347. EOF
  1348. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1349.   egrep "free" >/dev/null 2>&1; then
  1350.   :
  1351. else
  1352.   rm -rf conftest*
  1353.   ac_cv_header_stdc=no
  1354. fi
  1355. rm -f conftest*
  1356.  
  1357. fi
  1358.  
  1359. if test $ac_cv_header_stdc = yes; then
  1360.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1361. if test "$cross_compiling" = yes; then
  1362.   :
  1363. else
  1364.   cat > conftest.$ac_ext <<EOF
  1365. #line 1366 "configure"
  1366. #include "confdefs.h"
  1367. #include <ctype.h>
  1368. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1369. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1370. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1371. int main () { int i; for (i = 0; i < 256; i++)
  1372. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1373. exit (0); }
  1374.  
  1375. EOF
  1376. if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1377. then
  1378.   :
  1379. else
  1380.   echo "configure: failed program was:" >&5
  1381.   cat conftest.$ac_ext >&5
  1382.   rm -fr conftest*
  1383.   ac_cv_header_stdc=no
  1384. fi
  1385. rm -fr conftest*
  1386. fi
  1387.  
  1388. fi
  1389. fi
  1390.  
  1391. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1392. if test $ac_cv_header_stdc = yes; then
  1393.   cat >> confdefs.h <<\EOF
  1394. #define STDC_HEADERS 1
  1395. EOF
  1396.  
  1397. fi
  1398.  
  1399. ac_header_dirent=no
  1400. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1401. do
  1402. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1403. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1404. echo "configure:1405: checking for $ac_hdr that defines DIR" >&5
  1405. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1406.   echo $ac_n "(cached) $ac_c" 1>&6
  1407. else
  1408.   cat > conftest.$ac_ext <<EOF
  1409. #line 1410 "configure"
  1410. #include "confdefs.h"
  1411. #include <sys/types.h>
  1412. #include <$ac_hdr>
  1413. int main() {
  1414. DIR *dirp = 0;
  1415. ; return 0; }
  1416. EOF
  1417. if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1418.   rm -rf conftest*
  1419.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1420. else
  1421.   echo "configure: failed program was:" >&5
  1422.   cat conftest.$ac_ext >&5
  1423.   rm -rf conftest*
  1424.   eval "ac_cv_header_dirent_$ac_safe=no"
  1425. fi
  1426. rm -f conftest*
  1427. fi
  1428. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1429.   echo "$ac_t""yes" 1>&6
  1430.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1431.   cat >> confdefs.h <<EOF
  1432. #define $ac_tr_hdr 1
  1433. EOF
  1434.  ac_header_dirent=$ac_hdr; break
  1435. else
  1436.   echo "$ac_t""no" 1>&6
  1437. fi
  1438. done
  1439. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1440. if test $ac_header_dirent = dirent.h; then
  1441. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1442. echo "configure:1443: checking for opendir in -ldir" >&5
  1443. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1444. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1445.   echo $ac_n "(cached) $ac_c" 1>&6
  1446. else
  1447.   ac_save_LIBS="$LIBS"
  1448. LIBS="-ldir  $LIBS"
  1449. cat > conftest.$ac_ext <<EOF
  1450. #line 1451 "configure"
  1451. #include "confdefs.h"
  1452. /* Override any gcc2 internal prototype to avoid an error.  */
  1453. /* We use char because int might match the return type of a gcc2
  1454.     builtin and then its argument prototype would still apply.  */
  1455. char opendir();
  1456.  
  1457. int main() {
  1458. opendir()
  1459. ; return 0; }
  1460. EOF
  1461. if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1462.   rm -rf conftest*
  1463.   eval "ac_cv_lib_$ac_lib_var=yes"
  1464. else
  1465.   echo "configure: failed program was:" >&5
  1466.   cat conftest.$ac_ext >&5
  1467.   rm -rf conftest*
  1468.   eval "ac_cv_lib_$ac_lib_var=no"
  1469. fi
  1470. rm -f conftest*
  1471. LIBS="$ac_save_LIBS"
  1472.  
  1473. fi
  1474. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1475.   echo "$ac_t""yes" 1>&6
  1476.   LIBS="$LIBS -ldir"
  1477. else
  1478.   echo "$ac_t""no" 1>&6
  1479. fi
  1480.  
  1481. else
  1482. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1483. echo "configure:1484: checking for opendir in -lx" >&5
  1484. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1485. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1486.   echo $ac_n "(cached) $ac_c" 1>&6
  1487. else
  1488.   ac_save_LIBS="$LIBS"
  1489. LIBS="-lx  $LIBS"
  1490. cat > conftest.$ac_ext <<EOF
  1491. #line 1492 "configure"
  1492. #include "confdefs.h"
  1493. /* Override any gcc2 internal prototype to avoid an error.  */
  1494. /* We use char because int might match the return type of a gcc2
  1495.     builtin and then its argument prototype would still apply.  */
  1496. char opendir();
  1497.  
  1498. int main() {
  1499. opendir()
  1500. ; return 0; }
  1501. EOF
  1502. if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1503.   rm -rf conftest*
  1504.   eval "ac_cv_lib_$ac_lib_var=yes"
  1505. else
  1506.   echo "configure: failed program was:" >&5
  1507.   cat conftest.$ac_ext >&5
  1508.   rm -rf conftest*
  1509.   eval "ac_cv_lib_$ac_lib_var=no"
  1510. fi
  1511. rm -f conftest*
  1512. LIBS="$ac_save_LIBS"
  1513.  
  1514. fi
  1515. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1516.   echo "$ac_t""yes" 1>&6
  1517.   LIBS="$LIBS -lx"
  1518. else
  1519.   echo "$ac_t""no" 1>&6
  1520. fi
  1521.  
  1522. fi
  1523.  
  1524. for ac_hdr in unistd.h ctype.h fnmatch.h math.h setjmp.h stdio.h sys/fcntl.h sys/stat.h
  1525. do
  1526. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1527. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1528. echo "configure:1529: checking for $ac_hdr" >&5
  1529. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1530.   echo $ac_n "(cached) $ac_c" 1>&6
  1531. else
  1532.   cat > conftest.$ac_ext <<EOF
  1533. #line 1534 "configure"
  1534. #include "confdefs.h"
  1535. #include <$ac_hdr>
  1536. EOF
  1537. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1538. { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1539. ac_err=`grep -v '^ *+' conftest.out`
  1540. if test -z "$ac_err"; then
  1541.   rm -rf conftest*
  1542.   eval "ac_cv_header_$ac_safe=yes"
  1543. else
  1544.   echo "$ac_err" >&5
  1545.   echo "configure: failed program was:" >&5
  1546.   cat conftest.$ac_ext >&5
  1547.   rm -rf conftest*
  1548.   eval "ac_cv_header_$ac_safe=no"
  1549. fi
  1550. rm -f conftest*
  1551. fi
  1552. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1553.   echo "$ac_t""yes" 1>&6
  1554.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1555.   cat >> confdefs.h <<EOF
  1556. #define $ac_tr_hdr 1
  1557. EOF
  1558.  
  1559. else
  1560.   echo "$ac_t""no" 1>&6
  1561. fi
  1562. done
  1563.  
  1564. for ac_hdr in jpeglib.h png.h gif_lib.h
  1565. do
  1566. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1567. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1568. echo "configure:1569: checking for $ac_hdr" >&5
  1569. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1570.   echo $ac_n "(cached) $ac_c" 1>&6
  1571. else
  1572.   cat > conftest.$ac_ext <<EOF
  1573. #line 1574 "configure"
  1574. #include "confdefs.h"
  1575. #include <$ac_hdr>
  1576. EOF
  1577. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1578. { (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1579. ac_err=`grep -v '^ *+' conftest.out`
  1580. if test -z "$ac_err"; then
  1581.   rm -rf conftest*
  1582.   eval "ac_cv_header_$ac_safe=yes"
  1583. else
  1584.   echo "$ac_err" >&5
  1585.   echo "configure: failed program was:" >&5
  1586.   cat conftest.$ac_ext >&5
  1587.   rm -rf conftest*
  1588.   eval "ac_cv_header_$ac_safe=no"
  1589. fi
  1590. rm -f conftest*
  1591. fi
  1592. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1593.   echo "$ac_t""yes" 1>&6
  1594.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1595.   cat >> confdefs.h <<EOF
  1596. #define $ac_tr_hdr 1
  1597. EOF
  1598.  
  1599. else
  1600.   echo "$ac_t""no" 1>&6
  1601. fi
  1602. done
  1603.  
  1604. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1605. echo "configure:1606: checking for vprintf" >&5
  1606. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1607.   echo $ac_n "(cached) $ac_c" 1>&6
  1608. else
  1609.   cat > conftest.$ac_ext <<EOF
  1610. #line 1611 "configure"
  1611. #include "confdefs.h"
  1612. /* System header to define __stub macros and hopefully few prototypes,
  1613.     which can conflict with char vprintf(); below.  */
  1614. #include <assert.h>
  1615. /* Override any gcc2 internal prototype to avoid an error.  */
  1616. /* We use char because int might match the return type of a gcc2
  1617.     builtin and then its argument prototype would still apply.  */
  1618. char vprintf();
  1619.  
  1620. int main() {
  1621.  
  1622. /* The GNU C library defines this for functions which it implements
  1623.     to always fail with ENOSYS.  Some functions are actually named
  1624.     something starting with __ and the normal name is an alias.  */
  1625. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1626. choke me
  1627. #else
  1628. vprintf();
  1629. #endif
  1630.  
  1631. ; return 0; }
  1632. EOF
  1633. if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1634.   rm -rf conftest*
  1635.   eval "ac_cv_func_vprintf=yes"
  1636. else
  1637.   echo "configure: failed program was:" >&5
  1638.   cat conftest.$ac_ext >&5
  1639.   rm -rf conftest*
  1640.   eval "ac_cv_func_vprintf=no"
  1641. fi
  1642. rm -f conftest*
  1643. fi
  1644.  
  1645. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1646.   echo "$ac_t""yes" 1>&6
  1647.   cat >> confdefs.h <<\EOF
  1648. #define HAVE_VPRINTF 1
  1649. EOF
  1650.  
  1651. else
  1652.   echo "$ac_t""no" 1>&6
  1653. fi
  1654.  
  1655. if test "$ac_cv_func_vprintf" != yes; then
  1656. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1657. echo "configure:1658: checking for _doprnt" >&5
  1658. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1659.   echo $ac_n "(cached) $ac_c" 1>&6
  1660. else
  1661.   cat > conftest.$ac_ext <<EOF
  1662. #line 1663 "configure"
  1663. #include "confdefs.h"
  1664. /* System header to define __stub macros and hopefully few prototypes,
  1665.     which can conflict with char _doprnt(); below.  */
  1666. #include <assert.h>
  1667. /* Override any gcc2 internal prototype to avoid an error.  */
  1668. /* We use char because int might match the return type of a gcc2
  1669.     builtin and then its argument prototype would still apply.  */
  1670. char _doprnt();
  1671.  
  1672. int main() {
  1673.  
  1674. /* The GNU C library defines this for functions which it implements
  1675.     to always fail with ENOSYS.  Some functions are actually named
  1676.     something starting with __ and the normal name is an alias.  */
  1677. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1678. choke me
  1679. #else
  1680. _doprnt();
  1681. #endif
  1682.  
  1683. ; return 0; }
  1684. EOF
  1685. if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1686.   rm -rf conftest*
  1687.   eval "ac_cv_func__doprnt=yes"
  1688. else
  1689.   echo "configure: failed program was:" >&5
  1690.   cat conftest.$ac_ext >&5
  1691.   rm -rf conftest*
  1692.   eval "ac_cv_func__doprnt=no"
  1693. fi
  1694. rm -f conftest*
  1695. fi
  1696.  
  1697. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1698.   echo "$ac_t""yes" 1>&6
  1699.   cat >> confdefs.h <<\EOF
  1700. #define HAVE_DOPRNT 1
  1701. EOF
  1702.  
  1703. else
  1704.   echo "$ac_t""no" 1>&6
  1705. fi
  1706.  
  1707. fi
  1708.  
  1709.  
  1710. #
  1711. # look for scalb (byte sized float shifting) or scalw (word sized float shifting
  1712. # in math.h (maybe only available for motorolas FPU)
  1713. #
  1714.  
  1715. for ac_func in mkdir strtol snprintf fnmatch
  1716. do
  1717. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1718. echo "configure:1719: checking for $ac_func" >&5
  1719. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1720.   echo $ac_n "(cached) $ac_c" 1>&6
  1721. else
  1722.   cat > conftest.$ac_ext <<EOF
  1723. #line 1724 "configure"
  1724. #include "confdefs.h"
  1725. /* System header to define __stub macros and hopefully few prototypes,
  1726.     which can conflict with char $ac_func(); below.  */
  1727. #include <assert.h>
  1728. /* Override any gcc2 internal prototype to avoid an error.  */
  1729. /* We use char because int might match the return type of a gcc2
  1730.     builtin and then its argument prototype would still apply.  */
  1731. char $ac_func();
  1732.  
  1733. int main() {
  1734.  
  1735. /* The GNU C library defines this for functions which it implements
  1736.     to always fail with ENOSYS.  Some functions are actually named
  1737.     something starting with __ and the normal name is an alias.  */
  1738. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1739. choke me
  1740. #else
  1741. $ac_func();
  1742. #endif
  1743.  
  1744. ; return 0; }
  1745. EOF
  1746. if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1747.   rm -rf conftest*
  1748.   eval "ac_cv_func_$ac_func=yes"
  1749. else
  1750.   echo "configure: failed program was:" >&5
  1751.   cat conftest.$ac_ext >&5
  1752.   rm -rf conftest*
  1753.   eval "ac_cv_func_$ac_func=no"
  1754. fi
  1755. rm -f conftest*
  1756. fi
  1757.  
  1758. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1759.   echo "$ac_t""yes" 1>&6
  1760.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1761.   cat >> confdefs.h <<EOF
  1762. #define $ac_tr_func 1
  1763. EOF
  1764.  
  1765. else
  1766.   echo "$ac_t""no" 1>&6
  1767. fi
  1768. done
  1769.  
  1770.  
  1771. #
  1772. # look for available debugging-capabilities
  1773. #
  1774. DEBUGLIBS=""
  1775. echo $ac_n "checking for png_create_write_struct in -lpng""... $ac_c" 1>&6
  1776. echo "configure:1777: checking for png_create_write_struct in -lpng" >&5
  1777. ac_lib_var=`echo png'_'png_create_write_struct | sed 'y%./+-%__p_%'`
  1778. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1779.   echo $ac_n "(cached) $ac_c" 1>&6
  1780. else
  1781.   ac_save_LIBS="$LIBS"
  1782. LIBS="-lpng  $LIBS"
  1783. cat > conftest.$ac_ext <<EOF
  1784. #line 1785 "configure"
  1785. #include "confdefs.h"
  1786. /* Override any gcc2 internal prototype to avoid an error.  */
  1787. /* We use char because int might match the return type of a gcc2
  1788.     builtin and then its argument prototype would still apply.  */
  1789. char png_create_write_struct();
  1790.  
  1791. int main() {
  1792. png_create_write_struct()
  1793. ; return 0; }
  1794. EOF
  1795. if { (eval echo configure:1796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1796.   rm -rf conftest*
  1797.   eval "ac_cv_lib_$ac_lib_var=yes"
  1798. else
  1799.   echo "configure: failed program was:" >&5
  1800.   cat conftest.$ac_ext >&5
  1801.   rm -rf conftest*
  1802.   eval "ac_cv_lib_$ac_lib_var=no"
  1803. fi
  1804. rm -f conftest*
  1805. LIBS="$ac_save_LIBS"
  1806.  
  1807. fi
  1808. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1809.   echo "$ac_t""yes" 1>&6
  1810.     ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1811.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1812.   cat >> confdefs.h <<EOF
  1813. #define $ac_tr_lib 1
  1814. EOF
  1815.  
  1816.   LIBS="-lpng $LIBS"
  1817.  
  1818. else
  1819.   echo "$ac_t""no" 1>&6
  1820. fi
  1821.  
  1822. echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
  1823. echo "configure:1824: checking for rint in -lm" >&5
  1824. ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
  1825. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1826.   echo $ac_n "(cached) $ac_c" 1>&6
  1827. else
  1828.   ac_save_LIBS="$LIBS"
  1829. LIBS="-lm  $LIBS"
  1830. cat > conftest.$ac_ext <<EOF
  1831. #line 1832 "configure"
  1832. #include "confdefs.h"
  1833. /* Override any gcc2 internal prototype to avoid an error.  */
  1834. /* We use char because int might match the return type of a gcc2
  1835.     builtin and then its argument prototype would still apply.  */
  1836. char rint();
  1837.  
  1838. int main() {
  1839. rint()
  1840. ; return 0; }
  1841. EOF
  1842. if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1843.   rm -rf conftest*
  1844.   eval "ac_cv_lib_$ac_lib_var=yes"
  1845. else
  1846.   echo "configure: failed program was:" >&5
  1847.   cat conftest.$ac_ext >&5
  1848.   rm -rf conftest*
  1849.   eval "ac_cv_lib_$ac_lib_var=no"
  1850. fi
  1851. rm -f conftest*
  1852. LIBS="$ac_save_LIBS"
  1853.  
  1854. fi
  1855. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1856.   echo "$ac_t""yes" 1>&6
  1857.     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1858.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1859.   cat >> confdefs.h <<EOF
  1860. #define $ac_tr_lib 1
  1861. EOF
  1862.  
  1863.   LIBS="-lm $LIBS"
  1864.  
  1865. else
  1866.   echo "$ac_t""no" 1>&6
  1867. fi
  1868.  
  1869. echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
  1870. echo "configure:1871: checking for DGifOpenFileName in -lgif" >&5
  1871. ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
  1872. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1873.   echo $ac_n "(cached) $ac_c" 1>&6
  1874. else
  1875.   ac_save_LIBS="$LIBS"
  1876. LIBS="-lgif  $LIBS"
  1877. cat > conftest.$ac_ext <<EOF
  1878. #line 1879 "configure"
  1879. #include "confdefs.h"
  1880. /* Override any gcc2 internal prototype to avoid an error.  */
  1881. /* We use char because int might match the return type of a gcc2
  1882.     builtin and then its argument prototype would still apply.  */
  1883. char DGifOpenFileName();
  1884.  
  1885. int main() {
  1886. DGifOpenFileName()
  1887. ; return 0; }
  1888. EOF
  1889. if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1890.   rm -rf conftest*
  1891.   eval "ac_cv_lib_$ac_lib_var=yes"
  1892. else
  1893.   echo "configure: failed program was:" >&5
  1894.   cat conftest.$ac_ext >&5
  1895.   rm -rf conftest*
  1896.   eval "ac_cv_lib_$ac_lib_var=no"
  1897. fi
  1898. rm -f conftest*
  1899. LIBS="$ac_save_LIBS"
  1900.  
  1901. fi
  1902. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1903.   echo "$ac_t""yes" 1>&6
  1904.     ac_tr_lib=HAVE_LIB`echo gif | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1905.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1906.   cat >> confdefs.h <<EOF
  1907. #define $ac_tr_lib 1
  1908. EOF
  1909.  
  1910.   LIBS="-lgif $LIBS"
  1911.  
  1912. else
  1913.   echo "$ac_t""no" 1>&6
  1914. fi
  1915.  
  1916. echo $ac_n "checking for malloc in -ldbmalloc""... $ac_c" 1>&6
  1917. echo "configure:1918: checking for malloc in -ldbmalloc" >&5
  1918. ac_lib_var=`echo dbmalloc'_'malloc | sed 'y%./+-%__p_%'`
  1919. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1920.   echo $ac_n "(cached) $ac_c" 1>&6
  1921. else
  1922.   ac_save_LIBS="$LIBS"
  1923. LIBS="-ldbmalloc  $LIBS"
  1924. cat > conftest.$ac_ext <<EOF
  1925. #line 1926 "configure"
  1926. #include "confdefs.h"
  1927. /* Override any gcc2 internal prototype to avoid an error.  */
  1928. /* We use char because int might match the return type of a gcc2
  1929.     builtin and then its argument prototype would still apply.  */
  1930. char malloc();
  1931.  
  1932. int main() {
  1933. malloc()
  1934. ; return 0; }
  1935. EOF
  1936. if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1937.   rm -rf conftest*
  1938.   eval "ac_cv_lib_$ac_lib_var=yes"
  1939. else
  1940.   echo "configure: failed program was:" >&5
  1941.   cat conftest.$ac_ext >&5
  1942.   rm -rf conftest*
  1943.   eval "ac_cv_lib_$ac_lib_var=no"
  1944. fi
  1945. rm -f conftest*
  1946. LIBS="$ac_save_LIBS"
  1947.  
  1948. fi
  1949. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1950.   echo "$ac_t""yes" 1>&6
  1951.   DEBUGLIBS=-ldbmalloc
  1952. else
  1953.   echo "$ac_t""no" 1>&6
  1954. fi
  1955.  
  1956. echo $ac_n "checking for jpeg_set_quality in -ljpeg""... $ac_c" 1>&6
  1957. echo "configure:1958: checking for jpeg_set_quality in -ljpeg" >&5
  1958. ac_lib_var=`echo jpeg'_'jpeg_set_quality | sed 'y%./+-%__p_%'`
  1959. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1960.   echo $ac_n "(cached) $ac_c" 1>&6
  1961. else
  1962.   ac_save_LIBS="$LIBS"
  1963. LIBS="-ljpeg  $LIBS"
  1964. cat > conftest.$ac_ext <<EOF
  1965. #line 1966 "configure"
  1966. #include "confdefs.h"
  1967. /* Override any gcc2 internal prototype to avoid an error.  */
  1968. /* We use char because int might match the return type of a gcc2
  1969.     builtin and then its argument prototype would still apply.  */
  1970. char jpeg_set_quality();
  1971.  
  1972. int main() {
  1973. jpeg_set_quality()
  1974. ; return 0; }
  1975. EOF
  1976. if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1977.   rm -rf conftest*
  1978.   eval "ac_cv_lib_$ac_lib_var=yes"
  1979. else
  1980.   echo "configure: failed program was:" >&5
  1981.   cat conftest.$ac_ext >&5
  1982.   rm -rf conftest*
  1983.   eval "ac_cv_lib_$ac_lib_var=no"
  1984. fi
  1985. rm -f conftest*
  1986. LIBS="$ac_save_LIBS"
  1987.  
  1988. fi
  1989. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1990.   echo "$ac_t""yes" 1>&6
  1991.     ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1992.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1993.   cat >> confdefs.h <<EOF
  1994. #define $ac_tr_lib 1
  1995. EOF
  1996.  
  1997.   LIBS="-ljpeg $LIBS"
  1998.  
  1999. else
  2000.   echo "$ac_t""no" 1>&6
  2001. fi
  2002.  
  2003. if test "-ldbmalloc" = "$DEBUGLIBS"; then
  2004. #define    HAVE_LIBDBMALLOC
  2005.   echo "using dbmalloc-library for debugging"
  2006. fi
  2007.  
  2008.  
  2009. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  2010. echo "configure:2011: checking whether byte ordering is bigendian" >&5
  2011. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  2012.   echo $ac_n "(cached) $ac_c" 1>&6
  2013. else
  2014.   ac_cv_c_bigendian=unknown
  2015. # See if sys/param.h defines the BYTE_ORDER macro.
  2016. cat > conftest.$ac_ext <<EOF
  2017. #line 2018 "configure"
  2018. #include "confdefs.h"
  2019. #include <sys/types.h>
  2020. #include <sys/param.h>
  2021. int main() {
  2022.  
  2023. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2024.  bogus endian macros
  2025. #endif
  2026. ; return 0; }
  2027. EOF
  2028. if { (eval echo configure:2029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2029.   rm -rf conftest*
  2030.   # It does; now see whether it defined to BIG_ENDIAN or not.
  2031. cat > conftest.$ac_ext <<EOF
  2032. #line 2033 "configure"
  2033. #include "confdefs.h"
  2034. #include <sys/types.h>
  2035. #include <sys/param.h>
  2036. int main() {
  2037.  
  2038. #if BYTE_ORDER != BIG_ENDIAN
  2039.  not big endian
  2040. #endif
  2041. ; return 0; }
  2042. EOF
  2043. if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2044.   rm -rf conftest*
  2045.   ac_cv_c_bigendian=yes
  2046. else
  2047.   echo "configure: failed program was:" >&5
  2048.   cat conftest.$ac_ext >&5
  2049.   rm -rf conftest*
  2050.   ac_cv_c_bigendian=no
  2051. fi
  2052. rm -f conftest*
  2053. else
  2054.   echo "configure: failed program was:" >&5
  2055.   cat conftest.$ac_ext >&5
  2056. fi
  2057. rm -f conftest*
  2058. if test $ac_cv_c_bigendian = unknown; then
  2059. if test "$cross_compiling" = yes; then
  2060.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2061. else
  2062.   cat > conftest.$ac_ext <<EOF
  2063. #line 2064 "configure"
  2064. #include "confdefs.h"
  2065. main () {
  2066.   /* Are we little or big endian?  From Harbison&Steele.  */
  2067.   union
  2068.   {
  2069.     long l;
  2070.     char c[sizeof (long)];
  2071.   } u;
  2072.   u.l = 1;
  2073.   exit (u.c[sizeof (long) - 1] == 1);
  2074. }
  2075. EOF
  2076. if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2077. then
  2078.   ac_cv_c_bigendian=no
  2079. else
  2080.   echo "configure: failed program was:" >&5
  2081.   cat conftest.$ac_ext >&5
  2082.   rm -fr conftest*
  2083.   ac_cv_c_bigendian=yes
  2084. fi
  2085. rm -fr conftest*
  2086. fi
  2087.  
  2088. fi
  2089. fi
  2090.  
  2091. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2092. if test $ac_cv_c_bigendian = yes; then
  2093.   cat >> confdefs.h <<\EOF
  2094. #define WORDS_BIGENDIAN 1
  2095. EOF
  2096.  
  2097. fi
  2098.  
  2099. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2100. echo "configure:2101: checking for inline" >&5
  2101. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2102.   echo $ac_n "(cached) $ac_c" 1>&6
  2103. else
  2104.   ac_cv_c_inline=no
  2105. for ac_kw in inline __inline__ __inline; do
  2106.   cat > conftest.$ac_ext <<EOF
  2107. #line 2108 "configure"
  2108. #include "confdefs.h"
  2109.  
  2110. int main() {
  2111. } $ac_kw foo() {
  2112. ; return 0; }
  2113. EOF
  2114. if { (eval echo configure:2115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2115.   rm -rf conftest*
  2116.   ac_cv_c_inline=$ac_kw; break
  2117. else
  2118.   echo "configure: failed program was:" >&5
  2119.   cat conftest.$ac_ext >&5
  2120. fi
  2121. rm -f conftest*
  2122. done
  2123.  
  2124. fi
  2125.  
  2126. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2127. case "$ac_cv_c_inline" in
  2128.   inline | yes) ;;
  2129.   no) cat >> confdefs.h <<\EOF
  2130. #define inline 
  2131. EOF
  2132.  ;;
  2133.   *)  cat >> confdefs.h <<EOF
  2134. #define inline $ac_cv_c_inline
  2135. EOF
  2136.  ;;
  2137. esac
  2138.  
  2139. echo $ac_n "checking for long file names""... $ac_c" 1>&6
  2140. echo "configure:2141: checking for long file names" >&5
  2141. if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  2142.   echo $ac_n "(cached) $ac_c" 1>&6
  2143. else
  2144.   ac_cv_sys_long_file_names=yes
  2145. # Test for long file names in all the places we know might matter:
  2146. #      .        the current directory, where building will happen
  2147. #      $prefix/lib    where we will be installing things
  2148. #      $exec_prefix/lib    likewise
  2149. # eval it to expand exec_prefix.
  2150. #      $TMPDIR        if set, where it might want to write temporary files
  2151. # if $TMPDIR is not set:
  2152. #      /tmp        where it might want to write temporary files
  2153. #      /var/tmp        likewise
  2154. #      /usr/tmp        likewise
  2155. if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  2156.   ac_tmpdirs="$TMPDIR"
  2157. else
  2158.   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
  2159. fi
  2160. for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  2161.   test -d $ac_dir || continue
  2162.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  2163.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  2164.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  2165.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  2166.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  2167.     ac_cv_sys_long_file_names=no
  2168.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  2169.     break
  2170.   fi
  2171.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  2172. done
  2173. fi
  2174.  
  2175. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
  2176. if test $ac_cv_sys_long_file_names = yes; then
  2177.   cat >> confdefs.h <<\EOF
  2178. #define HAVE_LONG_FILE_NAMES 1
  2179. EOF
  2180.  
  2181. fi
  2182.  
  2183.  
  2184. #
  2185. # look for graphics and input-subsystems and create the appropriate
  2186. # directories and/or links
  2187. #
  2188. try_X11="no"
  2189. X_INCLUDES=""
  2190. X_LIBRARIES=""
  2191. output="./Makefile 
  2192. ./src/Makefile
  2193. ./src/Makefile-rules 
  2194. ./src/libqbuild/Makefile 
  2195. ./src/libqdisplay/Makefile 
  2196. ./src/libqsys/Makefile 
  2197. ./src/libqsys/generic.h 
  2198. ./src/libqtools/Makefile 
  2199. ./src/util/Makefile 
  2200. ./testfarm/Makefile"
  2201.  
  2202. if test -d "./src/libqsys/$target_cpu" ; then
  2203.   echo "use special $target_cpu-driver ..."
  2204.   if test -d "./src/libqsys/$target_cpu/$target_os" ; then
  2205.     echo "use special $target_os-driver ..."
  2206.   else
  2207.     target_os="X11"
  2208.     if test -d "./src/libqsys/$target_cpu/$target_os" ; then
  2209.       echo "use generic X11-driver ..."
  2210.     else
  2211.       ln -s "./src/libqsys/unsupported/X11" "./src/libqsys/$target_cpu/$target_os"
  2212.     fi
  2213.     try_X11="yes"
  2214.   fi
  2215. else
  2216.   echo "no special system-dependend source-code available, use generic driver ..."
  2217.   target_os="X11"
  2218.   target_cpu="unsupported"
  2219.   try_X11="yes"
  2220. fi
  2221.  
  2222. if test "$try_X11" = "yes" ; then
  2223.   # If we find X, set shell vars x_includes and x_libraries to the
  2224. # paths, otherwise set no_x=yes.
  2225. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2226. # --without-x overrides everything else, but does not touch the cache.
  2227. echo $ac_n "checking for X""... $ac_c" 1>&6
  2228. echo "configure:2229: checking for X" >&5
  2229.  
  2230. # Check whether --with-x or --without-x was given.
  2231. if test "${with_x+set}" = set; then
  2232.   withval="$with_x"
  2233.   :
  2234. fi
  2235.  
  2236. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2237. if test "x$with_x" = xno; then
  2238.   # The user explicitly disabled X.
  2239.   have_x=disabled
  2240. else
  2241.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2242.     # Both variables are already set.
  2243.     have_x=yes
  2244.   else
  2245. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  2246.   echo $ac_n "(cached) $ac_c" 1>&6
  2247. else
  2248.   # One or both of the vars are not set, and there is no cached value.
  2249. ac_x_includes=NO ac_x_libraries=NO
  2250. rm -fr conftestdir
  2251. if mkdir conftestdir; then
  2252.   cd conftestdir
  2253.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2254.   cat > Imakefile <<'EOF'
  2255. acfindx:
  2256.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2257. EOF
  2258.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2259.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2260.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2261.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2262.     for ac_extension in a so sl; do
  2263.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2264.         test -f $ac_im_libdir/libX11.$ac_extension; then
  2265.         ac_im_usrlibdir=$ac_im_libdir; break
  2266.       fi
  2267.     done
  2268.     # Screen out bogus values from the imake configuration.  They are
  2269.     # bogus both because they are the default anyway, and because
  2270.     # using them would break gcc on systems where it needs fixed includes.
  2271.     case "$ac_im_incroot" in
  2272.     /ade/include) ;;
  2273.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  2274.     esac
  2275.     case "$ac_im_usrlibdir" in
  2276.     /ade/lib) ;;
  2277.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  2278.     esac
  2279.   fi
  2280.   cd ..
  2281.   # AmigaOS hack - give lock on conftestdir time to expire before rm -fr.
  2282.   sleep 2
  2283.   rm -fr conftestdir
  2284. fi
  2285.  
  2286. if test "$ac_x_includes" = NO; then
  2287.   # Guess where to find include files, by looking for this one X11 .h file.
  2288.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  2289.  
  2290.   # First, try using that file with no special directory specified.
  2291. cat > conftest.$ac_ext <<EOF
  2292. #line 2293 "configure"
  2293. #include "confdefs.h"
  2294. #include <$x_direct_test_include>
  2295. EOF
  2296. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2297. { (eval echo configure:2298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2298. ac_err=`grep -v '^ *+' conftest.out`
  2299. if test -z "$ac_err"; then
  2300.   rm -rf conftest*
  2301.   # We can compile using X headers with no special include directory.
  2302. ac_x_includes=
  2303. else
  2304.   echo "$ac_err" >&5
  2305.   echo "configure: failed program was:" >&5
  2306.   cat conftest.$ac_ext >&5
  2307.   rm -rf conftest*
  2308.   # Look for the header file in a standard set of common directories.
  2309. # Check X11 before X11Rn because it is often a symlink to the current release.
  2310.   for ac_dir in               \
  2311.     /usr/X11/include          \
  2312.     /usr/X11R6/include        \
  2313.     /usr/X11R5/include        \
  2314.     /usr/X11R4/include        \
  2315.                               \
  2316.     /usr/include/X11          \
  2317.     /usr/include/X11R6        \
  2318.     /usr/include/X11R5        \
  2319.     /usr/include/X11R4        \
  2320.                               \
  2321.     /usr/local/X11/include    \
  2322.     /usr/local/X11R6/include  \
  2323.     /usr/local/X11R5/include  \
  2324.     /usr/local/X11R4/include  \
  2325.                               \
  2326.     /usr/local/include/X11    \
  2327.     /usr/local/include/X11R6  \
  2328.     /usr/local/include/X11R5  \
  2329.     /usr/local/include/X11R4  \
  2330.                               \
  2331.     /usr/X386/include         \
  2332.     /usr/x386/include         \
  2333.     /usr/XFree86/include/X11  \
  2334.                               \
  2335.     /usr/include              \
  2336.     /usr/local/include        \
  2337.     /usr/unsupported/include  \
  2338.     /usr/athena/include       \
  2339.     /usr/local/x11r5/include  \
  2340.     /usr/lpp/Xamples/include  \
  2341.                               \
  2342.     /usr/openwin/include      \
  2343.     /usr/openwin/share/include \
  2344.                               \
  2345.     /ade/X11/include          \
  2346.     /ade/X11R6.1/include      \
  2347.     /ade/include/X11          \
  2348.     ; \
  2349.   do
  2350.     if test -r "$ac_dir/$x_direct_test_include"; then
  2351.       ac_x_includes=$ac_dir
  2352.       break
  2353.     fi
  2354.   done
  2355. fi
  2356. rm -f conftest*
  2357. fi # $ac_x_includes = NO
  2358.  
  2359. if test "$ac_x_libraries" = NO; then
  2360.   # Check for the libraries.
  2361.  
  2362.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  2363.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  2364.  
  2365.   # See if we find them without any special options.
  2366.   # Don't add to $LIBS permanently.
  2367.   ac_save_LIBS="$LIBS"
  2368.   LIBS="-l$x_direct_test_library $LIBS"
  2369. cat > conftest.$ac_ext <<EOF
  2370. #line 2371 "configure"
  2371. #include "confdefs.h"
  2372.  
  2373. int main() {
  2374. ${x_direct_test_function}()
  2375. ; return 0; }
  2376. EOF
  2377. if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2378.   rm -rf conftest*
  2379.   LIBS="$ac_save_LIBS"
  2380. # We can link X programs with no special library path.
  2381. ac_x_libraries=
  2382. else
  2383.   echo "configure: failed program was:" >&5
  2384.   cat conftest.$ac_ext >&5
  2385.   rm -rf conftest*
  2386.   LIBS="$ac_save_LIBS"
  2387. # First see if replacing the include by lib works.
  2388. # Check X11 before X11Rn because it is often a symlink to the current release.
  2389. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  2390.     /usr/X11/lib          \
  2391.     /usr/X11R6/lib        \
  2392.     /usr/X11R5/lib        \
  2393.     /usr/X11R4/lib        \
  2394.                           \
  2395.     /usr/lib/X11          \
  2396.     /usr/lib/X11R6        \
  2397.     /usr/lib/X11R5        \
  2398.     /usr/lib/X11R4        \
  2399.                           \
  2400.     /usr/local/X11/lib    \
  2401.     /usr/local/X11R6/lib  \
  2402.     /usr/local/X11R5/lib  \
  2403.     /usr/local/X11R4/lib  \
  2404.                           \
  2405.     /usr/local/lib/X11    \
  2406.     /usr/local/lib/X11R6  \
  2407.     /usr/local/lib/X11R5  \
  2408.     /usr/local/lib/X11R4  \
  2409.                           \
  2410.     /usr/X386/lib         \
  2411.     /usr/x386/lib         \
  2412.     /usr/XFree86/lib/X11  \
  2413.                           \
  2414.     /usr/lib              \
  2415.     /usr/local/lib        \
  2416.     /usr/unsupported/lib  \
  2417.     /usr/athena/lib       \
  2418.     /usr/local/x11r5/lib  \
  2419.     /usr/lpp/Xamples/lib  \
  2420.     /lib/usr/lib/X11      \
  2421.                           \
  2422.     /usr/openwin/lib      \
  2423.     /usr/openwin/share/lib \
  2424.                            \
  2425.     /ade/X11/lib           \
  2426.     /ade/X11R6.1/lib       \
  2427.     /ade/lib/X11           \
  2428.     ; \
  2429. do
  2430.   for ac_extension in a so sl; do
  2431.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  2432.       ac_x_libraries=$ac_dir
  2433.       break 2
  2434.     fi
  2435.   done
  2436. done
  2437. fi
  2438. rm -f conftest*
  2439. fi # $ac_x_libraries = NO
  2440.  
  2441. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  2442.   # Didn't find X anywhere.  Cache the known absence of X.
  2443.   ac_cv_have_x="have_x=no"
  2444. else
  2445.   # Record where we found X for the cache.
  2446.   ac_cv_have_x="have_x=yes \
  2447.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  2448. fi
  2449. fi
  2450.   fi
  2451.   eval "$ac_cv_have_x"
  2452. fi # $with_x != no
  2453.  
  2454. if test "$have_x" != yes; then
  2455.   echo "$ac_t""$have_x" 1>&6
  2456.   no_x=yes
  2457. else
  2458.   # If each of the values was on the command line, it overrides each guess.
  2459.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  2460.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  2461.   # Update the cache value to reflect the command line values.
  2462.   ac_cv_have_x="have_x=yes \
  2463.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  2464.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  2465. fi
  2466.  
  2467.   if test "$have_x" = "yes" ; then
  2468.     cat >> confdefs.h <<\EOF
  2469. #define HAVE_X 1
  2470. EOF
  2471.  
  2472.   else
  2473.     target_os="unsupported"
  2474.   fi
  2475.   if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
  2476.     X_LIBRARIES=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
  2477.     X_LIBRARIES="$X_LIBRARIES -lX11"
  2478.   fi
  2479.   if test "${x_includes}" != NONE && test -n "${x_includes}"; then
  2480.     X_INCLUDES=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
  2481.   fi
  2482. fi
  2483.  
  2484. output="$output
  2485. ./src/libqsys/$target_cpu/Makefile
  2486. ./src/libqsys/$target_cpu/$target_os/Makefile"
  2487.  
  2488.  
  2489.  
  2490.  
  2491. #
  2492. # looking for special gcc-capabilities
  2493. #
  2494.  
  2495. trap '' 1 2 15
  2496. cat > confcache <<\EOF
  2497. # This file is a shell script that caches the results of configure
  2498. # tests run on this system so they can be shared between configure
  2499. # scripts and configure runs.  It is not useful on other systems.
  2500. # If it contains results you don't want to keep, you may remove or edit it.
  2501. #
  2502. # By default, configure uses ./config.cache as the cache file,
  2503. # creating it if it does not exist already.  You can give configure
  2504. # the --cache-file=FILE option to use a different cache file; that is
  2505. # what configure does when it calls configure scripts in
  2506. # subdirectories, so they share the cache.
  2507. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2508. # config.status only pays attention to the cache file if you give it the
  2509. # --recheck option to rerun configure.
  2510. #
  2511. EOF
  2512. # The following way of writing the cache mishandles newlines in values,
  2513. # but we know of no workaround that is simple, portable, and efficient.
  2514. # So, don't put newlines in cache variables' values.
  2515. # Ultrix sh set writes to stderr and can't be redirected directly,
  2516. # and sets the high bit in the cache file unless we assign to the vars.
  2517. (set) 2>&1 |
  2518.   case `(ac_space=' '; set) 2>&1 | grep ac_space` in
  2519.   *ac_space=\ *)
  2520.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2521.     # turns \\\\ into \\, and sed turns \\ into \).
  2522.     sed -n \
  2523.       -e "s/'/'\\\\''/g" \
  2524.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2525.     ;;
  2526.   *)
  2527.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2528.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2529.     ;;
  2530.   esac >> confcache
  2531. if cmp -s $cache_file confcache; then
  2532.   :
  2533. else
  2534.   if test -w $cache_file; then
  2535.     echo "updating cache $cache_file"
  2536.     cat confcache > $cache_file
  2537.   else
  2538.     echo "not updating unwritable cache $cache_file"
  2539.   fi
  2540. fi
  2541. rm -f confcache
  2542.  
  2543. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2544.  
  2545. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2546. # Let make expand exec_prefix.
  2547. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2548.  
  2549. # Any assignment to VPATH causes Sun make to only execute
  2550. # the first set of double-colon rules, so remove it if not needed.
  2551. # If there is a colon in the path, we need to keep it.
  2552. if test "x$srcdir" = x.; then
  2553.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2554. fi
  2555.  
  2556. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2557.  
  2558. DEFS=-DHAVE_CONFIG_H
  2559.  
  2560. # Without the "./", some shells look in PATH for config.status.
  2561. : ${CONFIG_STATUS=./config.status}
  2562.  
  2563. echo creating $CONFIG_STATUS
  2564. # Some systems, like AmigaOS, won't allow you to remove a script that is
  2565. # being executed, so just move it out of the way instead.
  2566. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2567. cat > $CONFIG_STATUS <<EOF
  2568. #! /bin/sh
  2569. # Generated automatically by configure.
  2570. # Run this file to recreate the current configuration.
  2571. # This directory was configured as follows,
  2572. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2573. #
  2574. # $0 $ac_configure_args
  2575. #
  2576. # Compiler output produced by configure, useful for debugging
  2577. # configure, is in ./config.log if it exists.
  2578.  
  2579. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2580. for ac_option
  2581. do
  2582.   case "\$ac_option" in
  2583.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2584.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2585.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2586.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2587.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  2588.     exit 0 ;;
  2589.   -help | --help | --hel | --he | --h)
  2590.     echo "\$ac_cs_usage"; exit 0 ;;
  2591.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2592.   esac
  2593. done
  2594.  
  2595. ac_given_srcdir=$srcdir
  2596. ac_given_INSTALL="$INSTALL"
  2597.  
  2598. trap 'rm -fr `echo "$output ./src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2599. EOF
  2600. cat >> $CONFIG_STATUS <<EOF
  2601.  
  2602. # Protect against being on the right side of a sed subst in config.status.
  2603. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2604.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2605. $ac_vpsub
  2606. $extrasub
  2607. s%@CFLAGS@%$CFLAGS%g
  2608. s%@CPPFLAGS@%$CPPFLAGS%g
  2609. s%@CXXFLAGS@%$CXXFLAGS%g
  2610. s%@DEFS@%$DEFS%g
  2611. s%@LDFLAGS@%$LDFLAGS%g
  2612. s%@LIBS@%$LIBS%g
  2613. s%@exec_prefix@%$exec_prefix%g
  2614. s%@prefix@%$prefix%g
  2615. s%@program_transform_name@%$program_transform_name%g
  2616. s%@bindir@%$bindir%g
  2617. s%@sbindir@%$sbindir%g
  2618. s%@libexecdir@%$libexecdir%g
  2619. s%@datadir@%$datadir%g
  2620. s%@sysconfdir@%$sysconfdir%g
  2621. s%@sharedstatedir@%$sharedstatedir%g
  2622. s%@localstatedir@%$localstatedir%g
  2623. s%@libdir@%$libdir%g
  2624. s%@includedir@%$includedir%g
  2625. s%@oldincludedir@%$oldincludedir%g
  2626. s%@infodir@%$infodir%g
  2627. s%@guidedir@%$guidedir%g
  2628. s%@psdir@%$psdir%g
  2629. s%@dvidir@%$dvidir%g
  2630. s%@mandir@%$mandir%g
  2631. s%@host@%$host%g
  2632. s%@host_alias@%$host_alias%g
  2633. s%@host_cpu@%$host_cpu%g
  2634. s%@host_vendor@%$host_vendor%g
  2635. s%@host_os@%$host_os%g
  2636. s%@target@%$target%g
  2637. s%@target_alias@%$target_alias%g
  2638. s%@target_cpu@%$target_cpu%g
  2639. s%@target_vendor@%$target_vendor%g
  2640. s%@target_os@%$target_os%g
  2641. s%@build@%$build%g
  2642. s%@build_alias@%$build_alias%g
  2643. s%@build_cpu@%$build_cpu%g
  2644. s%@build_vendor@%$build_vendor%g
  2645. s%@build_os@%$build_os%g
  2646. s%@CC@%$CC%g
  2647. s%@ARFLAGS@%$ARFLAGS%g
  2648. s%@AR@%$AR%g
  2649. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2650. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2651. s%@RANLIB@%$RANLIB%g
  2652. s%@SET_MAKE@%$SET_MAKE%g
  2653. s%@LD@%$LD%g
  2654. s%@AS@%$AS%g
  2655. s%@TAR@%$TAR%g
  2656. s%@GZIP@%$GZIP%g
  2657. s%@GPROTO@%$GPROTO%g
  2658. s%@MKD@%$MKD%g
  2659. s%@CPP@%$CPP%g
  2660. s%@DEBUGLIBS@%$DEBUGLIBS%g
  2661. s%@X_INCLUDES@%$X_INCLUDES%g
  2662. s%@X_LIBRARIES@%$X_LIBRARIES%g
  2663.  
  2664. CEOF
  2665. EOF
  2666.  
  2667. cat >> $CONFIG_STATUS <<\EOF
  2668.  
  2669. # Split the substitutions into bite-sized pieces for seds with
  2670. # small command number limits, like on Digital OSF/1 and HP-UX.
  2671. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2672. ac_file=1 # Number of current file.
  2673. ac_beg=1 # First line for current file.
  2674. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2675. ac_more_lines=:
  2676. ac_sed_cmds=""
  2677. while $ac_more_lines; do
  2678.   if test $ac_beg -gt 1; then
  2679.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2680.   else
  2681.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2682.   fi
  2683.   if test ! -s conftest.s$ac_file; then
  2684.     ac_more_lines=false
  2685.     rm -f conftest.s$ac_file
  2686.   else
  2687.     if test -z "$ac_sed_cmds"; then
  2688.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2689.     else
  2690.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2691.     fi
  2692.     ac_file=`expr $ac_file + 1`
  2693.     ac_beg=$ac_end
  2694.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2695.   fi
  2696. done
  2697. if test -z "$ac_sed_cmds"; then
  2698.   ac_sed_cmds=cat
  2699. fi
  2700. EOF
  2701.  
  2702. cat >> $CONFIG_STATUS <<EOF
  2703.  
  2704. CONFIG_FILES=\${CONFIG_FILES-"$output"}
  2705. EOF
  2706. cat >> $CONFIG_STATUS <<\EOF
  2707. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2708.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2709.   case "$ac_file" in
  2710.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2711.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2712.   *) ac_file_in="${ac_file}.in" ;;
  2713.   esac
  2714.  
  2715.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2716.  
  2717.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2718.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2719.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2720.     # The file is in a subdirectory.
  2721.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2722.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2723.     # A "../" for each directory in $ac_dir_suffix.
  2724.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2725.   else
  2726.     ac_dir_suffix= ac_dots=
  2727.   fi
  2728.  
  2729.   case "$ac_given_srcdir" in
  2730.   .)  srcdir=.
  2731.       if test -z "$ac_dots"; then top_srcdir=.
  2732.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2733.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2734.   *) # Relative path.
  2735.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2736.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2737.   esac
  2738.  
  2739.   case "$ac_given_INSTALL" in
  2740.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2741.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2742.   esac
  2743.  
  2744.   echo creating "$ac_file"
  2745.   rm -f "$ac_file"
  2746.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2747.   case "$ac_file" in
  2748.   *Makefile*) ac_comsub="1i\\
  2749. # $configure_input" ;;
  2750.   *) ac_comsub= ;;
  2751.   esac
  2752.  
  2753.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2754.   sed -e "$ac_comsub
  2755. s%@configure_input@%$configure_input%g
  2756. s%@srcdir@%$srcdir%g
  2757. s%@top_srcdir@%$top_srcdir%g
  2758. s%@INSTALL@%$INSTALL%g
  2759. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2760. fi; done
  2761. rm -f conftest.s*
  2762.  
  2763. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2764. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2765. #
  2766. # ac_d sets the value in "#define NAME VALUE" lines.
  2767. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2768. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2769. ac_dC='\3'
  2770. ac_dD='%g'
  2771. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2772. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2773. ac_uB='\([     ]\)%\1#\2define\3'
  2774. ac_uC=' '
  2775. ac_uD='\4%g'
  2776. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2777. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2778. ac_eB='$%\1#\2define\3'
  2779. ac_eC=' '
  2780. ac_eD='%g'
  2781.  
  2782. if test "${CONFIG_HEADERS+set}" != set; then
  2783. EOF
  2784. cat >> $CONFIG_STATUS <<EOF
  2785.   CONFIG_HEADERS="./src/include/config.h"
  2786. EOF
  2787. cat >> $CONFIG_STATUS <<\EOF
  2788. fi
  2789. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2790.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2791.   case "$ac_file" in
  2792.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2793.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2794.   *) ac_file_in="${ac_file}.in" ;;
  2795.   esac
  2796.  
  2797.   echo creating $ac_file
  2798.  
  2799.   rm -f conftest.frag conftest.in conftest.out
  2800.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2801.   cat $ac_file_inputs > conftest.in
  2802.  
  2803. EOF
  2804.  
  2805. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2806. # the proper values into config.h.in to produce config.h.  And first:
  2807. # Protect against being on the right side of a sed subst in config.status.
  2808. # Protect against being in an unquoted here document in config.status.
  2809. rm -f conftest.vals
  2810. cat > conftest.hdr <<\EOF
  2811. s/[\\&%]/\\&/g
  2812. s%[\\$`]%\\&%g
  2813. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2814. s%ac_d%ac_u%gp
  2815. s%ac_u%ac_e%gp
  2816. EOF
  2817. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2818. rm -f conftest.hdr
  2819.  
  2820. # This sed command replaces #undef with comments.  This is necessary, for
  2821. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2822. # on some systems where configure will not decide to define it.
  2823. cat >> conftest.vals <<\EOF
  2824. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2825. EOF
  2826.  
  2827. # Break up conftest.vals because some shells have a limit on
  2828. # the size of here documents, and old seds have small limits too.
  2829.  
  2830. rm -f conftest.tail
  2831. while :
  2832. do
  2833.   ac_lines=`grep -c . conftest.vals`
  2834.   # grep -c gives empty output for an empty file on some AIX systems.
  2835.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2836.   # Write a limited-size here document to conftest.frag.
  2837.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2838.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2839.   echo 'CEOF
  2840.   sed -f conftest.frag conftest.in > conftest.out
  2841.   rm -f conftest.in
  2842.   mv conftest.out conftest.in
  2843. ' >> $CONFIG_STATUS
  2844.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2845.   rm -f conftest.vals
  2846.   mv conftest.tail conftest.vals
  2847. done
  2848. rm -f conftest.vals
  2849.  
  2850. cat >> $CONFIG_STATUS <<\EOF
  2851.   rm -f conftest.frag conftest.h
  2852.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2853.   cat conftest.in >> conftest.h
  2854.   rm -f conftest.in
  2855.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2856.     echo "$ac_file is unchanged"
  2857.     rm -f conftest.h
  2858.   else
  2859.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2860.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2861.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2862.       # The file is in a subdirectory.
  2863.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2864.     fi
  2865.     rm -f $ac_file
  2866.     mv conftest.h $ac_file
  2867.   fi
  2868. fi; done
  2869.  
  2870. EOF
  2871. cat >> $CONFIG_STATUS <<EOF
  2872.  
  2873. EOF
  2874. cat >> $CONFIG_STATUS <<\EOF
  2875.  
  2876. exit 0
  2877. EOF
  2878. chmod +x $CONFIG_STATUS
  2879. rm -f CONFIG.STATUS.old
  2880. rm -fr confdefs* $ac_clean_files
  2881. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2882.  
  2883.